package cn.sangedon.review.data.mapper;

import cn.sangedon.review.common.domain.data.SnowballQuotation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Select;

/**
* @author dongliangqiong
* @description 针对表【tb_snowball_quotation(股票交易实时行情数据)】的数据库操作Mapper
* @createDate 2022-10-19 15:48:00
* @Entity cn.sangedon.review.common.domain.data.SnowballQuotation
*/
public interface SnowballQuotationMapper extends BaseMapper<SnowballQuotation> {

    @Select("SELECT * FROM tb_snowball_quotation WHERE gmt_create = (SELECT gmt_create FROM tb_snowball_quotation ORDER BY gmt_create " +
            "DESC LIMIT 1)")
    List<SnowballQuotation> listLatest();
}




